package com.tomgibara.android.veecheck.sample;

import com.tomgibara.android.veecheck.Veecheck;
import com.tomgibara.android.veecheck.util.PrefSettings;

import android.content.Intent;
import android.os.Bundle;
import android.preference.PreferenceActivity;

public class SamplePreferences extends PreferenceActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
		getPreferenceManager().setSharedPreferencesName(PrefSettings.SHARED_PREFS_NAME);
		addPreferencesFromResource(R.xml.preferences);
    }
    
    @Override
    protected void onPause() {
    	super.onPause();
    	//reschedule the checking in case the user has changed anything
		sendBroadcast(new Intent(Veecheck.getRescheduleAction(this)));

    }
}